﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;
using B.S.Medical.Domain.Department;
using B.S.Medical.Domain.Doctor;
using B.S.Medical.Domain.Entity;

namespace B.S.Medical.Domain.Medical
{
    /// <summary>
    /// 医生排班实体
    /// </summary>
    public class DoctorScheduleModel : BaseModel
    {
        /// <summary>
        /// 医生Id
        /// </summary>
        public int DoctorId { get; set; }
        /// <summary>
        /// 科室Id（冗余字段，便于查询）
        /// </summary>
        public int DepartmentId { get; set; }
        /// <summary>
        /// 排班日期
        /// </summary>
        public DateTime ScheduleDate { get; set; }
        /// <summary>
        /// 时段（1=上午，2=下午）
        /// </summary>
        public int Period { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 是否接诊
        /// </summary>
        public bool IsAvailable { get; set; }
        /// <summary>  
        /// 号源数
        /// </summary>
        public int SlotCount { get; set; }
        /// <summary>
        /// 医生实体
        /// </summary>
        public DoctorModel? Doctor { get; set; }
        /// <summary>
        /// 科室实体
        /// </summary>
        public ManageModel? Department { get; set; }
    }
}
